#ifndef SERVERTEST_HH_
# define SERVERTEST_HH_
# include "Test.hh"
# include "../Network/Network.hh"
# include <QtNetwork>
# include <QtTest>

class Test::ServerTest: public QObject {
    Q_OBJECT

    protected: QProcess server;

    protected: QSslConfiguration sslConfig[4];

    protected: static void wait_for_message(Network::XmlSocket& socket);

    public: ServerTest();

    private slots: void init();
    private slots: void cleanup();
    private slots: void connect();
    private slots: void new_game_ok();
    private slots: void new_game_fail();
    private slots: void join_game_ok();
    private slots: void join_game_fail_not_found();
    private slots: void join_game_fail_full();
    private slots: void start_game();
    private slots: void join_game_fail_started();
    private slots: void move_fleet();
    private slots: void colonize_planet();
};

#endif // ndef SERVERTEST_HH_
